class_name Relic
extends RefCounted

var id: String
var name: String
var description: String
var relic_type: GameData.RelicType

func _init(relic_id: String, relic_name: String, relic_desc: String, type: GameData.RelicType):
	id = relic_id
	name = relic_name
	description = relic_desc
	relic_type = type

# 获得遗物时的效果
func on_obtain() -> void:
	pass

# 每回合开始时的效果
func on_turn_start() -> void:
	pass

# 每回合结束时的效果
func on_turn_end() -> void:
	pass

# 受到伤害时的效果
func on_take_damage(damage: int) -> int:
	return damage

# 造成伤害时的效果
func on_deal_damage(damage: int) -> int:
	return damage
